<template>
  <!-- 聊天置顶卡片 -->
  <div class="chat-card">
    <div class="icon">
      <img :src="card.leftIcon" alt />
    </div>
    <div class="info">
      <div class="title">{{ card.title }}</div>
      <div class="content">{{ card.content }}</div>
    </div>
    <div class="desc">
      <i class="fa fa-angle-right fa-lgl"></i>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue, Prop } from "vue-property-decorator";

@Component
export default class ChatCard extends Vue {
  // 表示映射chat模块下的mutation方法

  @Prop({})
  card: any;

  private cardType: number = 0;

}
</script>

<style lang="stylus" scoped>
.chat-card
  width 100%
  height 44px
  display flex
  justify-content space-between
  align-items center
  background #fff
  border-top 1px solid #eaeaea
  border-bottom 1px solid #eaeaea
  padding 2px 12px 
  box-sizing border-box
  .icon
    flex-basis 10%
    width 10%
    img 
      width 100%
      height 100% 
  .info
    flex-basis 70%
    width 70%
    display flex 
    justify-content flex-start
    .title 
      font-size 15px
    .content 
      font-size 13px
      color #909090

</style>

